<?php

use yii\helpers\Html;
use yii\widgets\LinkPager;
use yii\grid\GridView;

/**
 * @var yii\web\View $this
 * @var amnah\yii2\user\Module $module
 * @var array $actions
 */
global $regionTypes2;
global $prodAttrCodes;
$regionTypes2 = $regionTypes;
$module = $this->context->module;

$this->title = Yii::t('user', 'Yii 2 User');
?>
<div class="user-default-index">



    <?php


    ?>


    <div class="row">
        <?php

        //$per=$buildingInfo['TotalLendedAreas']/ $buildingInfo['TotalAreas'];//百分比
//        $per=round($buildingInfo['TotalLendedAreas']/ $buildingInfo['TotalAreas']*100,2)."%";
//        $pers=round($buildingInfo['TotalCanvass']/ $buildingInfo['TotalAreas']*100,2)."%";

        $i = 0;
        $row = [];

        $row[$i]['md']     = 3;
        $row[$i]['bg']     = 'aqua';
        $row[$i]['num']    = $buildingInfo['prod_inst_staff'];

        $row[$i]['text']   = '个人录入房源';

//        $row[$i]['ion']    = 'fa-home';
        $row[$i]['unit']   = '个';
        $i++;


        $row[$i]['md']     = 3;
        $row[$i]['bg']     = 'yellow';
        $row[$i]['num']    = $buildingInfo['cust_staff'];
        $row[$i]['num1']  =  $per;//百分比
        $row[$i]['text']   = '个人录入客源';
//        $row[$i]['ion']    = 'ion-pie-graph';
        $row[$i]['unit']   = '个';
        $i++;

        $row[$i]['md']     = 2;
        $row[$i]['bg']     = 'green';
        $row[$i]['num']    = $buildingInfo['order_processed'];
        $row[$i]['text']   = '个人本月处理中的订单'.$per;
//        $row[$i]['ion']    = 'fa-home';
        $row[$i]['unit']   = '单';
        $i++;

        $row[$i]['md']     = 2;
        $row[$i]['bg']     = 'gray';
        $row[$i]['num']    = $buildingInfo['order_complete'];
        $row[$i]['text']   = '个人本月处理完的订单'.$pers;
//        $row[$i]['ion']    = 'fa-hourglass-end';
        $row[$i]['unit']   = '单';
        $i++;

        $row[$i]['md']     = 2;
        $row[$i]['bg']     = 'red';
        $row[$i]['num']    = $buildingInfo['order_residue'];
        $row[$i]['text']   = '个人剩余的订单';
//        $row[$i]['ion']    = 'fa-diamond';
        $row[$i]['unit']   = '单';
        $i++;




        echo app\common\TBAdminLte::widget('col', $row);

        ?>


    </div>
</div>
